import 'package:json_annotation/json_annotation.dart';

part 'user_model.g.dart';


///账户信息  流水之类的
@JsonSerializable()
class UserDataModel extends Object {

  UserModel? item;

  int? errcode;

  String? message;

  UserDataModel(this.item,this.errcode,this.message,);

  factory UserDataModel.fromJson(Map<String, dynamic> srcJson) => _$UserDataModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$UserDataModelToJson(this);

}


@JsonSerializable()
class UserModel extends Object {

  String? dim_username;

  int? user_id;

  String? username;

  String? nickname;

  String? avatar;

  int? points;

  String? balance;

  String? frozen_balance;

  String? birthday;

  String? mobile;

  String? email;

  int? rank_id;

  String? wechat_img;

  String? total_balance;

  int? coupon;

  bool? is_bind_wechat;

  int? show_sign;

  UserModel({this.dim_username,this.user_id,this.username,this.nickname,this.avatar,this.points,this.balance,this.frozen_balance,this.birthday,this.mobile,this.email,this.rank_id,this.wechat_img,this.total_balance,this.coupon,this.is_bind_wechat,this.show_sign});

  factory UserModel.fromJson(Map<String, dynamic> srcJson) => _$UserModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$UserModelToJson(this);

}

///用户信息
@JsonSerializable()
class UserInfoDataModel extends Object {

  UserInfoModel? item;

  int? errcode;

  String? message;

  UserInfoDataModel(this.item,this.errcode,this.message,);

  factory UserInfoDataModel.fromJson(Map<String, dynamic> srcJson) => _$UserInfoDataModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$UserInfoDataModelToJson(this);

}
@JsonSerializable()
class UserInfoModel extends Object {

  String dim_username;

  int user_id;

  String username;

  String nickname;

  String avatar;

  int rank_id;

  String balance;

  int points;

  int mobile_validated;

  int email_validated;

  int is_svip;

  int security_lv;

  int await_pay;

  int await_shipping;

  int await_comment;

  int await_coupon;

  int shop_num;

  UserInfoModel(this.dim_username,this.user_id,this.username,this.nickname,this.avatar,this.rank_id,this.balance,this.points,this.mobile_validated,this.email_validated,this.is_svip,this.security_lv,this.await_pay,this.await_shipping,this.await_comment,this.await_coupon,this.shop_num,);

  factory UserInfoModel.fromJson(Map<String, dynamic> srcJson) => _$UserInfoModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$UserInfoModelToJson(this);

}

